<?php
namespace app\home\controller;
use app\common\controller\Home;
class Api extends Home {
    public function index()
	{
		return 'react';
	}
    public function yunpan()
    {	
		$Url = param_url();
		$playurl = $Url['name'];
        $ch = curl_init();
        curl_setopt($ch,CURLOPT_URL, 'http://193.112.131.234:8081/play/va360?v='.$playurl);
        curl_setopt($ch, CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);  
        curl_setopt($ch,CURLOPT_HEADER,0);
        $info2 = curl_exec($ch);  
        curl_close($ch);

        echo $info2;
    }
}